package com.mdsoft.po;

public class Choose {

	private int id;
	private User fromUser;
	private User toUser;
	private float power;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public User getFromUser() {
		return fromUser;
	}
	public void setFromUser(User fromUser) {
		this.fromUser = fromUser;
	}
	public User getToUser() {
		return toUser;
	}
	public void setToUser(User toUser) {
		this.toUser = toUser;
	}
	public float getPower() {
		return power;
	}
	public void setPower(float power) {
		this.power = power;
	}
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Choose) {
			return ((Choose) obj).getId() == id;
		}
		return super.equals(obj);
	}
}
